home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript class to Realsoft 3D application
-
- include("real/r3layer/r3laylis.js");
- include("real/r3layer/r3layer.js");
- include("real/layer/r3prilay.js");
- include("real/layer/r3matlay.js");
-
- var R3_R3D_H = 1;
-
- function r3LockCurrent()
- {
- this.currentLayer.r3Attach(this.layerList.GetCurrentLayer());
- this.currentLayer.primLayer.r3Attach(this.currentLayer.GetPrims());
- this.currentLayer.matLayer.r3Attach(this.currentLayer.GetMaterials());
- return this.currentLayer;
- }
-
- function r3ReleaseCurrent()
- {
- }
-
- function r3Main ()
- {
- this.layerList = new r3Layerlist();
- this.layerList.r3Attach(_r3model);
-
- this.rspecLayer = new r3Listlayer();
- this.rspecLayer.r3Attach(this.layerList.GetRenderSpecs());
-
- this.outputLayer = new r3Listlayer();
- this.outputLayer.r3Attach(this.layerList.GetOutputs());
-
- this.channelLayer = new r3Listlayer();
- this.channelLayer.r3Attach(this.layerList.GetChannels());
-
- this.filrenLayer = new r3Listlayer();
- this.filrenLayer.r3Attach(this.layerList.GetFileRenderers());
-
- this.vmodLayer = new r3Listlayer();
- this.vmodLayer.r3Attach(this.layerList.GetViewModels());
-
- this.currentLayer = new r3Layer();
- this.currentLayer.primLayer = new r3Primlayer();
- this.currentLayer.matLayer = new r3Materiallayer();
-
- this.LockCurrent = r3LockCurrent;
- this.ReleaseCurrent = r3ReleaseCurrent;
- }
-
-